<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableFilms extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('films', function (Blueprint $table) {
            $table->increments('fid');    //影片ID
            $table->char('title',20);    //影片名
            $table->char('status',10);   //影片状态
            $table->string('intro',200); //影片描述
            $table->tinyinteger('area_id');     //影片地区ID
            $table->tinyinteger('type_id');  //影片类型ID
            $table->string('area_name');   //区域名字
            $table->string('type_name');   //类型名字
            $table->string('org_img');   //原始图片
            $table->string('movie');    //上传电影
            //$table->string('thumb_img'); //缩略图片
            $table->string('actors');    //主要演员
            $table->char('supplier',20); // 上传人员
            $table->string('link');     //影片链接


        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('films');
    }
}
